<?php
require_once BACKGROUND_PC_COMMON_ACTION_DIR . '/ajax.php';

class background_pc_index_do_login_action extends background_pc_ajax_common_action
{    
    protected $_if_require_login = false;
    
    protected function _current_page_run()
    {
        //var_dump(__METHOD__); exit();
        
        $background_index_do_login_action_service = wwy_resource_container::get_background_index_do_login_action_service();
        $background_index_do_login_action_service->process();

        if(self::$_view_status == '1'){
	        unset($_SESSION['admin_login_captcha']);
	        $_SESSION['admin_user_name'] = self::$_view_data['user_name'];
	    }
	    
	    $result = self::get_view_result();
	
	    echo json_encode($result);
    }
}